﻿package com.athena.controller 
{
	import com.athena.process.LuckyCardFunction;
	import flash.display.MovieClip;
	import flash.events.MouseEvent;
	/**
	 * ...
	 * @author Tamnt
	 */
	public class LuckyCardController 
	{
		public var m_movie_mc:MovieClip;
		public var stt : int ;
		public function LuckyCardController(_mc:MovieClip, i : int) 
		{
			m_movie_mc = _mc ;
			stt = i ;
			m_movie_mc.addEventListener(MouseEvent.CLICK, movie_click);			
		}
		function movie_mc_down(evt:MouseEvent)
		{
			Cocaro.xMove = m_movie_mc.mouseX ;
			Cocaro.yMove = m_movie_mc.mouseY ;
			Cocaro.mcMove = m_movie_mc ;			
		}		
		function movie_click(evt:MouseEvent)
		{
			LuckyCardFunction.OpenCard(stt) ;
		}
	}

}